package com.gcxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gcxy.entity.Resource;
import com.gcxy.entity.ResourceRole;
import com.gcxy.mapper.ResourceMapper;
import com.gcxy.mapper.ResourceRoleMapper;
import com.gcxy.service.ResourceRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author pep7chiao
 * @since 2022-09-27
 */
@Service
public class ResourceRoleServiceImpl extends ServiceImpl<ResourceRoleMapper, ResourceRole> implements ResourceRoleService {
    @Autowired
    private ResourceRoleMapper resourceRoleMapper;

    @Override
    public List<Resource> getResourceByRoleIds(List<Integer> roleIds) {
        return resourceRoleMapper.selectResourceByRoleIds(roleIds);
    }
}
